class TaskScene extends Scene{
    private task_Return:eui.Image;
    private accessiable_obtain:eui.Button;
    public constructor(){
        super();
    }
   public async onSkinLoaded() {
       this.task_Return.addEventListener(egret.TouchEvent.TOUCH_TAP,this.btnHandler,this);
       this.accessiable_obtain.addEventListener(egret.TouchEvent.TOUCH_TAP,this.btnHandler,this);
   }
    private btnHandler(evt: egret.TouchEvent) {
    let btnFocused = evt.currentTarget;
    switch(btnFocused){
        case this.task_Return:
            SceneManager.instance.removeScene(this);
            break;
        case this.accessiable_obtain:
            this.accessiable_obtain.currentState="down";
            this.accessiable_obtain.enabled=false;
            break;
    }
}
}